from rest_framework import serializers
from .models import Record


class PostRecordSuperSerializer(serializers.ModelSerializer):
    class Meta:
        model = Record
        fields = ('display',)

    def create(self, validated_data):
        return Record.objects.create(**validated_data)


class GetRecordSuperSerializer(serializers.ModelSerializer):

    class Meta:
        model = Record
        fields = ('display', 'id')

    def create(self, validated_data):
        pass